package com.top.vueservice.dao.mongo;

import com.top.vueservice.entities.mongo.MyUser;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

public interface MyUserRepository extends MongoRepository<MyUser,String> {

    Page<MyUser> findByStrName (String strName, Pageable pageable);
    MyUser findMyUserByStrName(String strName);
}
